﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/main/AdminBase.Master" AutoEventWireup="true" CodeBehind="list_staffaccess.aspx.cs" Inherits="com.lifan.motorcycle.admin.system.list_staffaccess" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="Model.AuthModel" %>
<%@ Import Namespace="Com.Ompchina.Lib.Text" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_header" runat="server">
<script type="text/javascript">
    $(function () {
        Init.tableList(".list");
    })
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_pagename" runat="server">
权限配置 &gt; <%= base.ConvertAction("操作记录")%> &gt; 管理员：<%= _DefaultStaff.Username %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_pagelink" runat="server">
<li><a href="list_staff.aspx?action=list">成员列表</a></li>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cph_main" runat="server">
<form id="frm_listStaffAccess" runat="server">
<table class="table list" cellpadding="0" cellspacing="0">
    <tr>
        <th>搜索条件：</th>
    	<td class="item"> 
    	    关键字：<asp:TextBox ID="txtKey" runat="server" CssClass="ipttxt w180 h20"></asp:TextBox>&nbsp;&nbsp;
            <asp:Button ID="btnSearch" runat="server" Text="过滤" onclick="btnSearch_Click" />
    	</td>
    </tr>
</table>
</form>
<br /><br />
<table class="table list" cellpadding="0" cellspacing="0">
	<tr>
        <th class="w100">编号</th>
	    <th>成员名称</th>
        <th class="w100">操作ip</th>
        <th>操作描述</th>
        <th class="w180">登录时间</th>
    </tr>
    <%
        int recordCount = 0, pageSize = 20;
        IList<StaffAccessInfo> list = this._GetAccess(pageSize, out recordCount);
        if (list != null && list.Count > 0) 
        {
            foreach (StaffAccessInfo info in list) 
            {
                %>
                <tr>
                    <td><%= info.AccessID %></td>
                    <td><%= info.Staff.Username%></td>                    
                    <td><%= info.IP %></td>
                    <td><%= info.AccessDescription %></td>
                    <td><%= info.AddTime.ToString() %></td>
                </tr>
                <%
            }
        }
    %>
    <tr>
        <th colspan="5" class="pager">
            <%
                Pager.ResponsePager(Response, Request.Url.AbsolutePath, "action=list" + base.GetQueryString()
                    , true, true, true, true, PageIndex, pageSize, recordCount, 7);
            %>
            总记录：<%= recordCount %>，当前第<%= PageIndex %>页
       </th>
    </tr>
</table>
</asp:Content>
